$(function () {
    $.ajax({
        url: "/sys_log/getList",
        type: "POST",
        dataType: "JSON",
        params: {
            pageNo:1,
            pageSize:10
        },
        success: function (data){
            var recodes = data.records;
            var html = "";
            for (const dataKey of recodes) {
                html += "<tr>";
                html += "<td style='display:none'>" + dataKey.id + "</td>";
                html += "<td>" + dataKey.username + "</td>";
                html += "<td>" + dataKey.operation + "</td>";
                html += "<td>" + dataKey.method + "</td>";
                html += "<td>" + dataKey.params + "</td>";
                html += "<td>" + dataKey.ip + "</td>";
                html += "<td>" + dataKey.createDate + "</td>";
                html += "</tr>";
            }
            $("#logList").html(html);
        },
        error: function (){
            console.log("接口查询报错");
        }
    })
});

var addBtn = function (){
    alert("点击新增按钮");
}

function updateBtn(){
    alert("点击编辑按钮");
}

function deleteBtn(){
    alert("点击删除按钮");
}